package com.hx.order.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hx.order.pojo.Drug;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 中二啊
 * @program: parent
 * @description:
 * @date 2021-01-19 14:27:52
 */
@Data
@ApiModel(description = "订单")
public class OrderDto implements Serializable {
    /**
     * 药品ids
     */
    @ApiModelProperty(value = "药品ids")
    List<Long> drugIds;
    /**
     * 订单类型
     */
    @ApiModelProperty(value = "订单类型")
    Integer type;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    Long userId;
    /**
     * 医生id
     */
    @ApiModelProperty(value = "医生id")
    Long doctorId;
    /**
     * 值班时间
     */
    @ApiModelProperty(value = "值班时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    Date dutyTime;

}
